const Mock = require('mockjs')
const fs = require('fs')

const data = Mock.mock({
  "list|100": [{
    "title": "@ctitle",
    "image": '@image(120x80, @color)',
    "word": "@cword",
	"price|1-1000": 1
  }]
})

const str = JSON.stringify(data.list)
  .replace('[', '')
  .replace(']', '')
  .replace(/\},\{/g, '}{')

fs.writeFileSync('data.json', str)